<?php
	if(!empty($uri_var[2])){$filetype = $uri_var[2];}else{$filetype = "";}
	if(!empty($uri_var[3])){$filename = $uri_var[3];}else{$filename = "";}
	$filename_arr = explode(".",$filename);
	$filename = $filename_arr[0].".php";

	// Check Privilege Show Button
	$privilegeString = privilege_check($_SESSION['userid'], $_SESSION['usergroupid'], $filetype, $filename);
	$privilegeCode = explode("-",$privilegeString);
	$privilegeView = $privilegeCode[0];
	$privilegeAdd = $privilegeCode[1];
	$privilegeEdit = $privilegeCode[2];
	$privilegeDelete = $privilegeCode[3];
?>